package com.cmc.cloud.cmclink.doc.api.document.rep;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 订舱航次路径 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SoVslvoyBaseDto {

    @Schema(description = "外键", requiredMode = Schema.RequiredMode.REQUIRED, example = "22179")
    private Long soId;

    @Schema(description = "航程序号 第一程1，第二程2，第三程3 以此类推 中转提单，每一程都要批舱", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer routeNo;

    @Schema(description = "航线代码 出口")
    @Length(max = 50, message = "航线代码出口支持最大长度{max}")
    private String laneCodeEx;

    @Schema(description = "航线代码 进口")
    @Length(max = 50, message = "航线代码进口支持最大长度{max}")
    private String laneCodeIm;

    @Schema(description = "船名代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "船名代码不能为空")
    @Length(max = 50, message = "船名代码支持最大长度{max}")
    private String vesselCode;

    @Schema(description = "出口航次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "出口航次不能为空")
    @Length(max = 50, message = "出口航次支持最大长度{max}")
    private String voyageEx;

    @Schema(description = "进口航次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "进口航次不能为空")
    @Length(max = 50, message = "进口航次支持最大长度{max}")
    private String voyageIm;

    @Schema(description = "装货港代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "装货港代码不能为空")
    @Length(max = 5, message = "装货港代码支持最大长度{max}")
    private String polCode;

    @Schema(description = "卸货港代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "卸货港代码不能为空")
    @Length(max = 5, message = "卸货港代码支持最大长度{max}")
    private String podCode;

    @Schema(description = "运输类型 第一个liner   四个选项：liner、truck、train、barge", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "运输类型 第一个liner   四个选项：liner、truck、train、barge不能为空")
    @Length(max = 10, message = "运输类型 第一个liner   四个选项：liner、truck、train、barge支持最大长度{max}")
    private String transmode;

    @Schema(description = "POL ETD 预计离港时间")
    @Length(max = 16, message = "POL ETD 预计离港时间支持最大长度{max}")
    private String polEtd;

    @Schema(description = "POD ETA 预计到达时间")
    @Length(max = 16, message = "POD ETA 预计到达时间支持最大长度{max}")
    private String podEta;

    @Schema(description = "指定装货点")
    @Length(max = 50, message = "指定装货点支持最大长度{max}")
    private String stuffLocEx;

    @Schema(description = "指定卸货堆场")
    @Length(max = 50, message = "指定卸货堆场支持最大长度{max}")
    private String stuffLocIm;

    @Schema(description = "批舱状态 中转提单，每一程都要批舱 数据字典key=doc_space_status Pending待批舱 Approved已批舱 Rejected拒绝批舱 Pending On Space 待定批舱 ", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @Length(max = 20, message = "批舱状态 中转提单，每一程都要批舱 数据字典key=doc_space_status Pending待批舱 Approved已批舱 Rejected拒绝批舱 Pending On Space 待定批舱 支持最大长度{max}")
    private String spaceApproveStatus;
    @Schema(description = "操船方")
    private String vesselOperator;
}
